-- GENERATED SPELL FOR [Vilewing Chimaera] --


function spell0_21879(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(16552,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21879', 12500, 1)
end

function Sorts_21879(pUnit, Event)
local choix_sorts_21879 = math.random(0, 0)
if choix_sorts_21879 == 0 then
pUnit:RegisterEvent('spell0_21879', 1, 1)
end
end

function mob21879_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21879', math.random(1500, 3000), 1)
end

function mob21879_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21879_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21879_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21879, 1, 'mob21879_Action')
RegisterUnitEvent(21879, 2, 'mob21879_Leave')
RegisterUnitEvent(21879, 3, 'mob21879_Kill')
RegisterUnitEvent(21879, 4, 'mob21879_Die')
